package com.effvi.neo4j.common;
/**
 * 性能统计
 * @author kelvin.zhang
 *
 */
public class Report {
	private String name;
	private long startTime = 0L;
	private long endTime = 0L;
	public String getName(){
		return this.name;
	}
	public Report start(){
		startTime = System.currentTimeMillis();
		return this;
	}
	public Report end(){
		endTime = System.currentTimeMillis();
		return this;
	}
	public void report(){
		report("共计耗时 %d ms",(endTime-startTime));
	}
	public void report(String format,Object... args){
		System.out.printf(format, args);
	}
	public void info(String info){
		System.out.println(info);
	}
}
